﻿using CID.Domain.Operations;
using CID.Domain.Users;
using CID.Domain.Audit;

namespace CID.Domain.Persistence.Mappings.Operations
{
    public class EnvironmentMap : DescribedEntityMap<Environment>
    {
        public EnvironmentMap() : base()
        {
            Map(x => x.Enabled);
            Map(x => x.IsProduction);
            References<User>(x => x.Responsible);
            HasMany<ServerAssignment>(x => x.Assignments);
            HasMany<ActiveVersion>(x => x.ActiveVersions);
        }
    }
}
